//
//  BGSellerListDetailController.m
//  bigMall
//
//  Created by LTOVE on 16/9/19.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGSellerListDetailController.h"
#import "BGDateResult.h"
#import "BGBuyerOrderDetailModel.h"
#import "MJExtension.h"
@interface BGSellerListDetailController ()  

@end

@implementation BGSellerListDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"订单详情";
    UIBarButtonItem *back =[[UIBarButtonItem alloc] init];
    back.title = @"";
    self.navigationItem.backBarButtonItem = back;
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)setOrderId:(NSString *)orderId
{
    self.isSeller = YES;
    [super setOrderId:orderId];
    
    [BGDateResult sellerOrderDetailWithOrderId:orderId  success:^(NSObject *result) {
        BGBuyerOrderDetailModel *resu = (BGBuyerOrderDetailModel *)result;
        //        resu = result;
        self.resultData = resu.keyValues;
        [self analysisDataWith:result andFirst:YES];
        
    } failure:^(NSError *error) {
        
        
    }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
